package com.meituan.catering.management.order.biz.model.converter;

import com.meituan.catering.management.order.api.http.model.request.BillCateringOrderHttpRequest;
import com.meituan.catering.management.order.biz.model.request.BillCateringOrderBizRequest;

/**
 * @author Believe
 * Date 2022/6/2 15:16
 */
public class BillCateringOrderBizRequestConverter {
    public static BillCateringOrderBizRequest toBillCateringOrderBizRequest(BillCateringOrderHttpRequest request) {
        BillCateringOrderBizRequest billCateringOrderBizRequest = new BillCateringOrderBizRequest();
        billCateringOrderBizRequest.setVersion(request.getVersion());
        billCateringOrderBizRequest.setPromotion(request.getPromotion());
        billCateringOrderBizRequest.setPaid(request.getPaid());
        billCateringOrderBizRequest.setPaymentChannel(request.getPaymentChannel());
        return billCateringOrderBizRequest;
    }
}
